<template>
  <Content title="确认">
    <view class="quality-confirmation-box">
      <u-form
        labelPosition="left"
        :model="model"
        labelWidth="200"
        labelAlign="left"
        :rules="rules"
        ref="uForm"
      >
        <u-form-item
          label="模具（产品）异常情况描述"
          prop="boardingDate"
          labelPosition="top"
          required
        >
          <u-textarea
            style="margin-top: 20px"
            v-model="model.approveComment"
            placeholder="主要输入内容（部位+问题、要求参数、实际参数）信息"
          ></u-textarea>
        </u-form-item>
        <view class="btn-v">
          <view class="but-box">
            <u-button class="btn" @click="close" text="取消"></u-button>
            <u-button
              class="btn"
              type="primary"
              @click="submit"
              text="确定"
            ></u-button>
          </view>
        </view>
      </u-form>
    </view>
  </Content>
</template>

<script>
import Content from "@/components/content/index.vue";
export default {
  components: {
    Content,
  },
  data() {
    return {
      id: "",
      model: {},
      rules: [],
    };
  },
  onLoad: function (option) {
    //option为object类型，会序列化上个页面传递的参数
  },
  onShow: function () {},
  mounted() {},
  methods: {
    close() {
      uni.navigateBack({
        delta: 1, //返回上一页
      });
    },
    submit() {},
  },
};
</script>

<style scoped lang="scss">
.quality-confirmation-box {
  padding: 40rpx;
  background-color: #fff;
  min-height: 100%;
}
</style>
